﻿using DapperExtensions;
using System;

namespace Think9.Models
{
    [Table("TbBasic")]
    public class TbBasicEntity
    {
        /// <summary>
        /// 报表编号
        /// </summary>
        public string TbId
        {
            get; set;
        }

        /// <summary>
        /// 流程编码 bi_基础信息 fw_一般录入表
        /// </summary>
        public string FlowId
        {
            get; set;
        }

        /// <summary>
        /// 是否基本信息表？0不确定1基本信息表2一般录入表
        /// </summary>
        public string BInfo
        {
            get; set;
        }

        /// <summary>
        /// 报表类型--1表示主表2表示子表
        /// </summary>
        public string TbType
        {
            get; set;
        }

        /// <summary>
        /// 分类id
        /// </summary>
        public string TbSortId
        {
            get; set;
        }

        /// <summary>
        /// 报表名称
        /// </summary>
        public string TbName
        {
            get; set;
        }

        /// <summary>
        /// 对应的主表编码--对子表 空值为主表
        /// </summary>
        public string ParentId
        {
            get; set;
        }

        /// <summary>
        /// 对象类别--数据字典
        /// </summary>
        public string ObjectType
        {
            get; set;
        }

        /// <summary>
        /// 填报周期--见数据字典
        /// </summary>
        public string TbCyc
        {
            get; set;
        }

        /// <summary>
        /// 报表填报的前推周期
        /// </summary>
        public int NTime
        {
            get; set;
        }

        /// <summary>
        /// 填报说明
        /// </summary>
        public string TbExplain
        {
            get; set;
        }

        /// <summary>
        /// 样式字符串？自画 定制 系统默认
        /// </summary>
        public string TbStyle
        {
            get; set;
        }

        /// <summary>
        /// 标志字符串
        /// </summary>
        public string TbFlag
        {
            get; set;
        }

        /// <summary>
        /// 数据库中是否存在该表？1存在2不存在
        /// </summary>
        public string BBb
        {
            get; set;
        }

        /// <summary>
        /// 是否锁定？1是2否
        /// </summary>
        public string BLock
        {
            get; set;
        }

        /// <summary>
        /// 是否允许其余报表读取该表信息?1允许2不允许
        /// </summary>
        public string BReadValue
        {
            get; set;
        }

        /// <summary>
        /// 是否允许其余报表修改该表信息?1允许2不允许
        /// </summary>
        public string BUpValue
        {
            get; set;
        }

        /// <summary>
        /// 否可编辑？表示是否可编辑属性1允许2不允许
        /// </summary>
        public string BEdit
        {
            get; set;
        }

        /// <summary>
        /// 排序号
        /// </summary>
        public int OrderNo
        {
            get; set;
        }

        /// <summary>
        /// 启用禁用
        /// </summary>
        public string BUse
        {
            get; set;
        }

        /// <summary>
        /// 最后更新记录ID
        /// </summary>
        public int UpRecordID
        {
            get; set;
        }

        /// <summary>
        /// 新增用户 //zzz20190927
        /// </summary>
        public string CreateUser
        {
            get; set;
        }

        /// <summary>
        /// 新增时间 //zzz20190927
        /// </summary>
        public DateTime CreateTime
        {
            get; set;
        }

        /// <summary>
        /// 1可动态添加删除行(包含增加和删除按钮,可单独增加删除行)
        /// </summary>
        [Computed]
        public string InType { get; set; }

        /// <summary>
        /// 流程类型？1固定2自由流程 0无流程
        /// </summary>
        [Computed]
        public string FlowType { get; set; }

        [Computed]
        public string EditUser_Exa { get; set; }

        [Computed]
        public string EditUser { get; set; }

        [Computed]
        public string indexCount { get; set; }

        [Computed]
        public string TbRelationCount { get; set; }//

        [Computed]
        public string ValueCheckCount { get; set; }

        [Computed]
        public string ButCount { get; set; }

        [Computed]
        public string ButEdit { get; set; }

        [Computed]
        public string ButEditTxt { get; set; }

        [Computed]
        public string ButEditWarn { get; set; }


        [Computed]
        public string ButNext { get; set; }

        [Computed]
        public string ButNextTxt { get; set; }

        [Computed]
        public string ButNextWarn { get; set; }



        [Computed]
        public string ButFinish { get; set; }

        [Computed]
        public string ButFinishTxt { get; set; }

        [Computed]
        public string ButFinishWarn { get; set; }


        [Computed]
        public string ButAtt { get; set; }

        [Computed]
        public string ButAttTxt { get; set; }

        [Computed]
        public string ButAttWarn { get; set; }

    }
}